package com.xyx.convert;

import com.xyx.domain.dos.BlogSettingsDO;
import com.xyx.model.vo.blogsettings.FindBlogSettingsRspVO;
import com.xyx.model.vo.blogsettings.UpdateBlogSettingsReqVO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * 描述：<一句话描述功能>
 *
 * @author：xiayixiang
 * @date: 21:29
 */
@Mapper
public interface BlogSettingsConvert {
    /**
     * 初始化 convert 实例
     */
    BlogSettingsConvert INSTANCE = Mappers.getMapper(BlogSettingsConvert.class);

    /**
     * 将 VO 转化为 DO
     *
     * @param bean
     * @return
     */
    BlogSettingsDO convertVO2DO(UpdateBlogSettingsReqVO bean);


    /**
     * 将 DO 转化为 VO
     * @param bean
     * @return
     */
    FindBlogSettingsRspVO convertDO2VO(BlogSettingsDO bean);

}
